package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Controller;
@Controller
@EnableScheduling
@ServletComponentScan
@SpringBootApplication
public class WebsocketSpringbootDemoApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext app = SpringApplication.run(WebsocketSpringbootDemoApplication.class, args);
		System.out.println("================启动完成"+app);
		SpringContextUtil.setApplicationContext(app);
		/*String[] beanNames =  app.getBeanDefinitionNames();

		System.out.println("beanNames个数："+beanNames.length);
		for(String bn:beanNames){
			System.out.println(bn);
		}*/
	}
}
